class PagesController < ApplicationController
  def home
if client_session
verify_client
end

end


	
 	def about_us
  end

  def contact_us

  end

	def external_link
  end

	def send_email
    @name = params[:name]
		@title = params[:title]
 		@description = params[:description]
 		@email = params[:email]	
		@other = params[:other]
		if !@title.nil? && !@description.nil?
			 @employees = Employee.find(:all, :conditions => ["is_manager = ? && is_active=?", true,true ] ) 
			 @employees.each do |manager|
       	DocumentNotification.contact_us(manager,@name,@title,@description,@email,@other).deliver
			 end	
      redirect_to(contact_us_path, :notice => "Message was successfully sent.")
    else
      flash.now.alert = "Please fill all fields."
      render contact_us_path
    end
	end
end
